﻿using System;

namespace ProjectEuler
{
    internal class Problem10
    {
        public void Solve()
        {
            long maxNum = 2000000;
            long sum = 0;
            for (var i = 2; i < maxNum; i++)
            {
                if (Common.IsPrime(i))
                {
                    //Console.Write(i + " + ");
                    sum += i;
                }
            }

            Console.WriteLine("problem 10: " + sum);
        }

        
    }
}